#define _CRT_SECURE_NO_WARNINGS 1
#include "List.h"

void TestList()
{
	List<int> lt;
	lt.push_back(1);
	lt.push_back(3);
	lt.push_back(5);
	lt.push_back(7);
	lt.push_back(9);

	for (auto e : lt)
	{
		std::cout << e << " ";
	}
	std::cout << std::endl;

	lt.push_front(2);
	lt.push_front(4);

	for (auto e : lt)
	{
		std::cout << e << " ";
	}
	std::cout << std::endl;

	lt.pop_back();
	lt.pop_front();

	for (auto e : lt)
	{
		std::cout << e << " ";
	}
	std::cout << std::endl;
	lt.pop_front();
	lt.pop_front();
	lt.pop_front();
	lt.pop_front();
	lt.pop_front();
	lt.pop_front();
	lt.pop_front();

}

int main()
{
	TestList();

	return 0;
}
